import java.util.Scanner;

public class palindromes {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int p = sc.nextInt();
        int x = p;
        int temp = 0;
        while (p > 0) {
            int ge = p % 10;
            p = p / 10;
            temp = temp * 10 + ge;
        }
        if (0 <= x && x <= 9) {
            System.out.println(x + "是回文数");
        } else if (temp == x) {
            System.out.println(x + "是回文数");
        } else {
            System.out.println(x + "不是回文数");
        }
    }
}
